1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677
|
using System;
using System.Drawing;
using System.Drawing.Design;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.ComponentModel.Design.Serialization;
using System.Windows.Forms;
using System.Data;
using System.IO;
using Host;
using Loader;
using ToolWindows;
/** MODIF AJOUT REFERENCES */
using System.Reflection;
using System.Text;
namespace Shell
{
/// <summary>
/// This is the Shell that has the Toolbox, PropertyGrid, hosts Designers, etc.
/// </summary>
public partial class MainShell : Form
{
private int _formCount = 0;
private int _userControlCount = 0;
private int _componentCount = 0;
private int _grapherCount = 0;
private HostSurfaceManager _hostSurfaceManager = null;
private int _prevIndex = 0;
private int _curIndex = 0;
/** MODIF .trap du form courant **/
private Form currentFrm = null;
/** MODIF .un stringbuilder pour recuperer le fichier texte CPC **/
private StringBuilder sbCpc = null;
public MainShell()
{
InitializeComponent();
CustomInitialize();
}
/// <summary>
/// Adds custom services to the HostManager like TGoolbox, PropertyGrid,
/// SolutionExplorer.
/// OutputWindow is added as a service. It is used by the HostSurfaceManager
/// to write out to the OutputWindow. You can add any services
/// you want.
/// </summary>
private void CustomInitialize()
{
_hostSurfaceManager = new HostSurfaceManager();
_hostSurfaceManager.AddService(typeof(IToolboxService), this.toolbox1);
_hostSurfaceManager.AddService(typeof(ToolWindows.SolutionExplorer), this.solutionExplorer1);
_hostSurfaceManager.AddService(typeof(ToolWindows.OutputWindow), this.OutputWindow);
_hostSurfaceManager.AddService(typeof(System.Windows.Forms.PropertyGrid), this.propertyGrid1);
codeDomDesignerLoaderMenuItem_Click(null, null);
this.tabControl1.SelectedIndexChanged += new EventHandler(tabControl1_SelectedIndexChanged);
this.noLoaderMenuItem_Click(null, null);
}
private int CurrentDocumentsDesignIndex
{
get
{
string codeText;
string designText;
int index = 0;
if (CurrentDocumentView == Strings.Design)
return this.tabControl1.SelectedIndex;
else
{
// This is the Code View. So let us find the Design View
codeText = this.tabControl1.TabPages[this.tabControl1.SelectedIndex].Text.Trim();
designText = codeText.Replace(Strings.Code, Strings.Design);
foreach (TabPage tab in this.tabControl1.TabPages)
{
if (tab.Text == designText)
return index;
index++;
}
}
return -1;
}
}
private int CurrentDocumentsCodeIndex
{
get
{
if (CurrentDocumentView == Strings.Code)
return this.tabControl1.SelectedIndex;
int index = 0;
//HostControl currentHostControl = CurrentDocumentsHostControl;
// Find out if the Code Tab already exists
string designText = this.tabControl1.TabPages[this.tabControl1.SelectedIndex].Text.Trim();
string codeText = designText.Replace(Strings.Design, Strings.Code);
foreach (TabPage tab in this.tabControl1.TabPages)
{
if (tab.Text == codeText)
return index;
index++;
}
TabPage tabPage = new TabPage();
tabPage.Text = codeText;
tabPage.Tag = CurrentActiveDocumentLoaderType;
this.tabControl1.Controls.Add(tabPage);
// Create new RichTextBox for codeEditor
RichTextBox codeEditor = new System.Windows.Forms.RichTextBox();
codeEditor.BackColor = System.Drawing.SystemColors.Desktop;
codeEditor.ForeColor = System.Drawing.Color.White;
codeEditor.Dock = System.Windows.Forms.DockStyle.Fill;
codeEditor.Font = new System.Drawing.Font("Verdana", 9.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
codeEditor.Location = new System.Drawing.Point(0, 0);
codeEditor.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Both;
codeEditor.WordWrap = false;
codeEditor.Size = new System.Drawing.Size(284, 247);
codeEditor.TabIndex = 0;
codeEditor.ReadOnly = true;
codeEditor.Text = "";
tabPage.Controls.Add(codeEditor);
return this.tabControl1.TabPages.Count - 1;
}
}
private HostControl CurrentDocumentsHostControl
{
get
{
return (HostControl)this.tabControl1.TabPages[CurrentDocumentsDesignIndex].Controls[0];
}
}
private RichTextBox CurrentDocumentsCodeEditor
{
get
{
return (RichTextBox)this.tabControl1.TabPages[CurrentDocumentsCodeIndex].Controls[0];
}
}
private LoaderType CurrentMenuSelectionLoaderType
{
get
{
if (this.basicDesignerLoaderMenuItem.Checked)
return LoaderType.BasicDesignerLoader;
else if (this.codeDomDesignerLoaderMenuItem.Checked)
return LoaderType.CodeDomDesignerLoader;
else
return LoaderType.NoLoader;
}
}
private LoaderType CurrentActiveDocumentLoaderType
{
get
{
TabPage tabPage = this.tabControl1.TabPages[this.tabControl1.SelectedIndex];
return (LoaderType)tabPage.Tag;
}
}
private string CurrentDocumentView
{
get
{
TabPage tabPage = this.tabControl1.TabPages[this.tabControl1.SelectedIndex];
if (tabPage.Text.Contains(Strings.Design))
return Strings.Design;
else
return Strings.Code;
}
}
private void basicDesignerLoaderMenuItem_Click(object sender, System.EventArgs e)
{
this.noLoaderMenuItem.Checked = false;
this.codeDomDesignerLoaderMenuItem.Checked = false;
this.basicDesignerLoaderMenuItem.Checked = true;
// Disable all item types except Form
this.formMenuItem.Enabled = true;
this.userControlMenuItem.Enabled = false;
this.componentMenuItem.Enabled = false;
this.grapherMenuItem.Enabled = false;
}
private void noLoaderMenuItem_Click(object sender, System.EventArgs e)
{
this.noLoaderMenuItem.Checked = true;
this.codeDomDesignerLoaderMenuItem.Checked = false;
this.basicDesignerLoaderMenuItem.Checked = false;
// Enable all item types
this.formMenuItem.Enabled = true;
this.userControlMenuItem.Enabled = true;
this.componentMenuItem.Enabled = true;
this.grapherMenuItem.Enabled = true;
}
private void codeDomDesignerLoaderMenuItem_Click(object sender, System.EventArgs e)
{
this.noLoaderMenuItem.Checked = false;
this.codeDomDesignerLoaderMenuItem.Checked = true;
this.basicDesignerLoaderMenuItem.Checked = false;
// Disable all item types except Form
this.formMenuItem.Enabled = true;
this.userControlMenuItem.Enabled = false;
this.componentMenuItem.Enabled = false;
this.grapherMenuItem.Enabled = false;
}
private void xmlMenuItem_Click(object sender, System.EventArgs e)
{
SwitchToCode(Strings.Xml);
}
private void cMenuItem1_Click(object sender, System.EventArgs e)
{
SwitchToCode(Strings.CS);
}
private void vBMenuItem_Click(object sender, System.EventArgs e)
{
SwitchToCode(Strings.VB);
}
private void jMenuItem1_Click(object sender, System.EventArgs e)
{
SwitchToCode(Strings.JS);
}
private void SwitchToCode(string context)
{
if (CurrentActiveDocumentLoaderType == LoaderType.NoLoader)
{
MessageBox.Show("Code view is not supported for document loaded without Loaders");
return;
}
if (context == Strings.Xml && CurrentActiveDocumentLoaderType != LoaderType.BasicDesignerLoader)
{
MessageBox.Show("Xml code view is supported only for BasicDesignerLoader");
return;
}
/* MODIF: RAJOUT CONSTANTE Strings.CPC */
if ((context == Strings.CS || context == Strings.VB || context == Strings.JS || context == Strings.CPC) && CurrentActiveDocumentLoaderType != LoaderType.CodeDomDesignerLoader)
{
MessageBox.Show(context + " code view is supported only for CodeDomDesignerLoader");
return;
}
HostControl currentHostControl = CurrentDocumentsHostControl;
RichTextBox codeEditor = CurrentDocumentsCodeEditor;
if (CurrentActiveDocumentLoaderType == LoaderType.BasicDesignerLoader)
codeEditor.Text = ((BasicHostLoader)currentHostControl.HostSurface.Loader).GetCode();
/* MODIF: JUMP Strings.CS, Strings.VB,Strings.JS */
else if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader && (context == Strings.CS || context == Strings.VB || context == Strings.JS))
codeEditor.Text = ((CodeDomHostLoader)currentHostControl.HostSurface.Loader).GetCode(context);
/* MODIF: JUMP Strings.CS, Strings.VB,Strings.JS */
/* MODIF: JUMP Strings.Cpc .ENVOI du stringbuilder dans richtextbox */
else if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader && (context == Strings.CPC))
codeEditor.Text = sbCpc.ToString();
int index = CurrentDocumentsCodeIndex;
if (this.tabControl1.SelectedIndex != index)
{
_prevIndex = this.tabControl1.SelectedIndex;
this.tabControl1.SelectedIndex = index;
_curIndex = index;
}
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (CurrentDocumentView == Strings.Design)
{
if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader)
this.eMenuItem.Enabled = true;
else
this.eMenuItem.Enabled = false;
}
else
{
if (CurrentActiveDocumentLoaderType == LoaderType.BasicDesignerLoader)
SwitchToCode(Strings.Xml);
else if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader)
SwitchToCode(Strings.CS);
}
}
/// <summary>
/// Persist the code if the host is loaded using a BasicDesignerLoader
/// </summary>
private void saveMenuItem_Click(object sender, System.EventArgs e)
{
if (CurrentActiveDocumentLoaderType == LoaderType.NoLoader)
{
MessageBox.Show("Cannot persist document created without loaders");
return;
}
if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader)
{
MessageBox.Show("Cannot persist document created using CodeDomDesignerLoader");
return;
}
HostControl currentHostControl = CurrentDocumentsHostControl;
if (CurrentActiveDocumentLoaderType == LoaderType.BasicDesignerLoader)
((BasicHostLoader)currentHostControl.HostSurface.Loader).Save();
this.OutputWindow.RichTextBox.Text += "Saved host.\n";
}
/// <summary>
/// Open an xml file that was saved earlier
/// </summary>
private void openMenuItem_Click(object sender, System.EventArgs e)
{
try
{
string fileName = null;
// Open File Dialog
OpenFileDialog dlg = new OpenFileDialog();
dlg.DefaultExt = "xml";
dlg.Filter = "Xml Files|*.xml";
if (dlg.ShowDialog() == DialogResult.OK)
fileName = dlg.FileName;
if (fileName == null)
return;
// Create Form
_formCount++;
HostControl hc = _hostSurfaceManager.GetNewHost(fileName);
this.Toolbox.DesignerHost = hc.DesignerHost;
TabPage tabpage = new TabPage("Form" + _formCount.ToString() + " - " + Strings.Design);
if (fileName.EndsWith("xml"))
tabpage.Tag = LoaderType.BasicDesignerLoader;
else if (fileName.EndsWith("cs") || fileName.EndsWith("vb"))
tabpage.Tag = LoaderType.CodeDomDesignerLoader;
hc.Parent = tabpage;
hc.Dock = DockStyle.Fill;
this.tabControl1.TabPages.Add(tabpage);
this.tabControl1.SelectedIndex = this.tabControl1.TabPages.Count - 1;
this.OutputWindow.RichTextBox.Text += "Opened new host.\n";
}
catch
{
MessageBox.Show("Error in creating new host", "Shell Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void saveAsMenuItem_Click(object sender, System.EventArgs e)
{
if (CurrentActiveDocumentLoaderType == LoaderType.NoLoader)
{
MessageBox.Show("Cannot persist document created without loaders");
return;
}
if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader)
{
MessageBox.Show("Cannot persist document created using CodeDomDesignerLoader");
return;
}
HostControl currentHostControl = CurrentDocumentsHostControl;
((BasicHostLoader)currentHostControl.HostSurface.Loader).Save(true);
}
/// <summary>
/// If the host was loaded using a CodeDomDesignerLoader then we can run it
/// </summary>
private void runMenuItem_Click(object sender, System.EventArgs e)
{
if (CurrentActiveDocumentLoaderType == LoaderType.NoLoader || CurrentActiveDocumentLoaderType == LoaderType.BasicDesignerLoader)
{
MessageBox.Show("Cannot Run document created without loaders or created using BasicDesignerLoader. To run a document use CodeDomDesignerLoader");
return;
}
HostControl currentHostControl = CurrentDocumentsHostControl;
((CodeDomHostLoader)currentHostControl.HostSurface.Loader).Run();
}
private void exitMenuItem_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void AddTabForNewHost(string tabText, HostControl hc)
{
this.Toolbox.DesignerHost = hc.DesignerHost;
TabPage tabpage = new TabPage(tabText);
tabpage.Tag = CurrentMenuSelectionLoaderType;
hc.Parent = tabpage;
hc.Dock = DockStyle.Fill;
this.tabControl1.TabPages.Add(tabpage);
this.tabControl1.SelectedIndex = this.tabControl1.TabPages.Count - 1;
_hostSurfaceManager.ActiveDesignSurface = hc.HostSurface;
if (CurrentActiveDocumentLoaderType == LoaderType.CodeDomDesignerLoader)
this.eMenuItem.Enabled = true;
else
this.eMenuItem.Enabled = false;
this.solutionExplorer1.AddFileNode(tabText);
}
private void formMenuItem_Click(object sender, System.EventArgs e)
{
try
{
_formCount++;
HostControl hc = _hostSurfaceManager.GetNewHost(typeof(Form), CurrentMenuSelectionLoaderType);
AddTabForNewHost("Form" + _formCount.ToString() + " - " + Strings.Design, hc);
}
catch
{
MessageBox.Show("Error in creating new host", "Shell Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void userControlMenuItem_Click(object sender, EventArgs e)
{
try
{
_userControlCount++;
HostControl hc = _hostSurfaceManager.GetNewHost(typeof(UserControl), CurrentMenuSelectionLoaderType);
AddTabForNewHost("UserControl" + _userControlCount.ToString() + " - " + Strings.Design, hc);
}
catch
{
MessageBox.Show("Error in creating new host", "Shell Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void componentMenuItem_Click(object sender, EventArgs e)
{
try
{
_componentCount++;
HostControl hc = _hostSurfaceManager.GetNewHost(typeof(Component), CurrentMenuSelectionLoaderType);
AddTabForNewHost("Component" + _componentCount.ToString() + " - " + Strings.Design, hc);
}
catch
{
MessageBox.Show("Error in creating new host", "Shell Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void grapherMenuItem_Click(object sender, EventArgs e)
{
try
{
_grapherCount++;
HostControl hc = _hostSurfaceManager.GetNewHost(typeof(MyTopLevelComponent), CurrentMenuSelectionLoaderType);
AddTabForNewHost("CustomDesigner" + _grapherCount.ToString() + " - " + Strings.Design, hc);
}
catch
{
MessageBox.Show("Error in creating new host", "Shell Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
/// <summary>
/// Perform all the Edit menu options using the MenuCommandService
/// </summary>
private void PerformAction(string text)
{
if (this.CurrentDocumentView == Strings.Code)
{
MessageBox.Show("This is not in supported code view");
return;
}
if (this.CurrentDocumentsHostControl == null)
return;
IMenuCommandService ims = this.CurrentDocumentsHostControl.HostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService;
try
{
switch (text)
{
case "&Cut":
ims.GlobalInvoke(StandardCommands.Cut);
break;
case "C&opy":
ims.GlobalInvoke(StandardCommands.Copy);
break;
case "&Paste":
ims.GlobalInvoke(StandardCommands.Paste);
break;
case "&Undo":
ims.GlobalInvoke(StandardCommands.Undo);
break;
case "&Redo":
ims.GlobalInvoke(StandardCommands.Redo);
break;
case "&Delete":
ims.GlobalInvoke(StandardCommands.Delete);
break;
case "&Select All":
ims.GlobalInvoke(StandardCommands.SelectAll);
break;
case "&Lefts":
ims.GlobalInvoke(StandardCommands.AlignLeft);
break;
case "&Centers":
ims.GlobalInvoke(StandardCommands.AlignHorizontalCenters);
break;
case "&Rights":
ims.GlobalInvoke(StandardCommands.AlignRight);
break;
case "&Tops":
ims.GlobalInvoke(StandardCommands.AlignTop);
break;
case "&Middles":
ims.GlobalInvoke(StandardCommands.AlignVerticalCenters);
break;
case "&Bottoms":
ims.GlobalInvoke(StandardCommands.AlignBottom);
break;
default:
break;
}
}
catch
{
this.OutputWindow.RichTextBox.Text += "Error in performing the action: " + text.Replace("&", "");
}
}
private void ActionClick(object sender, EventArgs e)
{
PerformAction((sender as MenuItem).Text);
}
private void openMenuItem1_Click(object sender, EventArgs e)
{
MessageBox.Show("Options can be implemented here");
}
private void abMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("Designer Hosting sample. Whidbey ROCKS!");
}
/** MODIF AJOUT MENUITEM CPC */
private void CPCmenuItem_Click(object sender, EventArgs e)
{
HostSurface hostSurface = (HostSurface)_hostSurfaceManager.ActiveDesignSurface;
IDesignerHost host = (IDesignerHost)hostSurface.GetService(typeof(IDesignerHost));
if (host == null)
return;
try
{
Type hostType = host.RootComponent.GetType();
if (hostType == typeof(Form))
{
currentFrm = host.RootComponent as Form;
sbCpc = GenFileTextCpc(currentFrm);
SwitchToCode(Strings.CPC);
}
else
{
throw new Exception("Undefined Host Type: " + hostType.ToString());
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + " cannot find the control");
}
}
private StringBuilder GenFileTextCpc(Form frm)
{
StringBuilder sb = new StringBuilder();
WriteProperties(frm, sb);
foreach (Control ctl in frm.Controls)
{
WriteProperties(ctl, sb);
}
return sb;
}
private void WriteProperties(Control ctl, StringBuilder sb)
{
if (ctl.GetType() == typeof(Form))
sb.AppendLine("fenetre/");
else if (ctl.GetType() == typeof(Button))
sb.AppendLine("bouton/");
else if (ctl.GetType() == typeof(TextBox))
sb.AppendLine("textebloc/");
else if (ctl.GetType() == typeof(PictureBox))
sb.AppendLine("picturebox/");
else if (ctl.GetType() == typeof(CheckBox))
sb.AppendLine("checkbox/");
PropertyInfo[] pinfos = ctl.GetType().GetProperties();
foreach (var propinfo in pinfos)
{
Color clr;
switch (propinfo.Name)
{
case "Text":
sb.AppendLine(".titre = " + ctl.Text);
break;
case "Location":
sb.AppendLine(".px = " + ctl.Location.X.ToString());
sb.AppendLine(".py = " + ctl.Location.Y.ToString());
break;
case "Size":
sb.AppendLine(".tx = " + ctl.Location.X.ToString());
sb.AppendLine(".ty = " + ctl.Location.Y.ToString());
break;
case "ForeColor":
clr = ctl.ForeColor;
sb.AppendLine(".CouleurTexte = \"" + clr.R.ToString() + "," + clr.G.ToString() + "," + clr.B.ToString() + "\"");
break;
case "BackColor":
clr = ctl.BackColor;
sb.AppendLine(".CouleurFond = \"" + clr.R.ToString() + "," + clr.G.ToString() + "," + clr.B.ToString() + "\"");
break;
default:
break;
}
}
if (ctl.GetType() == typeof(Form))
sb.AppendLine("Fin/ fenetre");
else if (ctl.GetType() == typeof(Button))
sb.AppendLine("Fin/ bouton/");
else if (ctl.GetType() == typeof(TextBox))
sb.AppendLine("Fin/ textebloc/");
else if (ctl.GetType() == typeof(PictureBox))
sb.AppendLine("Fin/ picturebox/");
else if (ctl.GetType() == typeof(CheckBox))
sb.AppendLine("Fin/ checkbox/");
}
private class Strings
{
public const string Design = "Design";
public const string Code = "Code";
public const string Xml = "Xml";
public const string CS = "C#";
public const string JS = "J#";
public const string VB = "VB";
public const string CPC = "CPC";
}
}
} |
Partager