private static void Main(string[] args) { bool firstInstance; _mutex = new Mutex(true, "MainForm", out firstInstance); if (!firstInstance) { return; } var currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += UnhandledException; Application.ThreadException += UnhandledThreadException; Application.ApplicationExit += Exit; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); var dialog = new MainDialog(); if (args.Length == 1) { var file = new FileInfo(args[0]); if (file.Exists) { dialog.ProjectPath = file.FullName; } } Application.Run(dialog); }
public async Task ShowsFirstMessageAndCallsAzureDialogDirectly() { // Arrange var feedbackOptions = new FeedbackOptions(); var mockTemplateManager = SimpleMockFactory.CreateMockTemplateManager("mock template message"); var mockDialog = new Mock <AzureDialog>(Configuration, _telemetryClient, mockTemplateManager.Object); mockDialog.Setup(x => x.BeginDialogAsync(It.IsAny <DialogContext>(), It.IsAny <object>(), It.IsAny <CancellationToken>())) .Returns(async(DialogContext dialogContext, object options, CancellationToken cancellationToken) => { dialogContext.Dialogs.Add(new TextPrompt("MockDialog")); return(await dialogContext.PromptAsync("MockDialog", new PromptOptions() { Prompt = MessageFactory.Text($"{nameof(AzureDialog)} mock invoked") }, cancellationToken)); }); var fileSearchDialog = new Mock <FileSearchDialog>(_telemetryClient, Configuration); var mainDialog = new MainDialog(_telemetryClient, feedbackOptions, _mockLogger.Object, mockTemplateManager.Object, _userState, mockDialog.Object, fileSearchDialog.Object); var testClient = new DialogTestClient(Channels.Test, mainDialog, middlewares: new[] { new XUnitDialogTestLogger(Output) }); // Act/Assert var reply = await testClient.SendActivityAsync <IMessageActivity>("hi"); Assert.Equal("mock template message", reply.Text); reply = await testClient.SendActivityAsync <IMessageActivity>("next"); Assert.Equal($"{nameof(AzureDialog)} mock invoked", reply.Text); }
void Update() { GameObject obj = GameObject.Find("MainDialog"); MainDialog dialog = obj.GetComponent <MainDialog>(); EnergyController energyCtrler = (EnergyController)AppController.Instance.GetController(Controller.ENERGY); GameController gameCtrler = (GameController)AppController.Instance.GetController(Controller.GAME); GachaController gachaCtrler = (GachaController)AppController.Instance.GetController(Controller.GACHA); if (!dialog.isShowingDialog && !gachaCtrler.isSpinning && energyCtrler.currentEnergy > 0 && canMove && !gameCtrler.gameEnded) { Vector3 pos = transform.position; pos.z = 0; transform.position = pos; float timeRatio = (gameCtrler.startTime - gameCtrler.currentTime) / gameCtrler.startTime; _speed = minSpeed + ((maxSpeed - minSpeed) * timeRatio); float _horizontalInput = Input.GetAxisRaw("Horizontal"); float _verticalInput = Input.GetAxisRaw("Vertical"); if (_verticalInput != 0f) { _animator.SetFloat("HorizontalInput", 0f); } else { _animator.SetFloat("HorizontalInput", _horizontalInput); } _animator.SetFloat("VerticalInput", _verticalInput); _charController.Move(new Vector3(_horizontalInput * _speed * Time.deltaTime, _verticalInput * _speed * Time.deltaTime, 0.0f)); } else { _animator.SetFloat("HorizontalInput", 0); _animator.SetFloat("VerticalInput", 0); } }
private async Task BotCallback(ITurnContext turnContext, CancellationToken cancellationToken) { try { var conversationStateAccessors = ConversationState.CreateProperty <DialogState>(nameof(DialogState)); var dialogSet = new DialogSet(conversationStateAccessors); Dialog mainDialog = new MainDialog(_configuration, _logger, _telemetryClient); dialogSet.Add(mainDialog); var dialogContext = await dialogSet.CreateContextAsync(turnContext, cancellationToken); var results = await dialogContext.ContinueDialogAsync(cancellationToken); //if (results.Status == DialogTurnStatus.Empty) //{ await dialogContext.BeginDialogAsync(mainDialog.Id, null, cancellationToken); await ConversationState.SaveChangesAsync(dialogContext.Context, false, cancellationToken); //} //else // await turnContext.SendActivityAsync("Starting proactive message bot call back"); } catch (Exception ex) { this._logger.LogError(ex.Message); } }
private void uiButtonForConfirm_Click(object sender, EventArgs e) { saveSettingsToAppConfig(); if (uiTextBoxForUsername.Text.Trim().Length != 0 && uiTextBoxForPassword.Text.Trim().Length != 0) { if (uiComboBoxForSelectBrowser.SelectedItem == null) { MessageBox.Show("Please select a browser to continue."); } else { //login Driver driver = new Driver(BrowserEnum.getEnum(uiComboBoxForSelectBrowser.SelectedIndex)); TravianHelper helper = new TravianHelper(driver, uiTextBoxForUsername.Text, uiTextBoxForPassword.Text); bool logInSuccessfull = helper.loginTravian(); if (logInSuccessfull) { //helper.GetRessources(); Village village = new Village(driver.WebDriver); MainDialog mainDialog = new MainDialog(); mainDialog.Show(); } else { MessageBox.Show("Login not successfull.\nPlease check if your data is correct."); } } } else { MessageBox.Show("Please eneter username and password to continue."); } }
public BeerBot(MainDialog dialog, ConversationState conversationState, UserState userState, ILogger <BeerBot> logger) { _dialog = dialog; _conversationState = conversationState; _userState = userState; _logger = logger; }
public async Task ShowsMessageIfLuisNotConfiguredAndCallsBookDialogDirectly() { // Arrange var mockRecognizer = SimpleMockFactory.CreateMockLuisRecognizer <FlightBookingRecognizer>(null, constructorParams: new Mock <IConfiguration>().Object); mockRecognizer.Setup(x => x.IsConfigured).Returns(false); // Create a specialized mock for BookingDialog that displays a dummy TextPrompt. // The dummy prompt is used to prevent the MainDialog waterfall from moving to the next step // and assert that the dialog was called. var mockDialog = new Mock <BookingDialog>(); mockDialog .Setup(x => x.BeginDialogAsync(It.IsAny <DialogContext>(), It.IsAny <object>(), It.IsAny <CancellationToken>())) .Returns(async(DialogContext dialogContext, object options, CancellationToken cancellationToken) => { dialogContext.Dialogs.Add(new TextPrompt("MockDialog")); return(await dialogContext.PromptAsync("MockDialog", new PromptOptions() { Prompt = MessageFactory.Text($"{nameof(BookingDialog)} mock invoked") }, cancellationToken)); }); var sut = new MainDialog(mockRecognizer.Object, mockDialog.Object, _mockLogger.Object); var testClient = new DialogTestClient(Channels.Test, sut, middlewares: new[] { new XUnitDialogTestLogger(Output) }); // Act/Assert var reply = await testClient.SendActivityAsync <IMessageActivity>("hi"); Assert.Equal("NOTE: LUIS is not configured. To enable all capabilities, add 'LuisAppId', 'LuisAPIKey' and 'LuisAPIHostName' to the appsettings.json file.", reply.Text); reply = testClient.GetNextReply <IMessageActivity>(); Assert.Equal("BookingDialog mock invoked", reply.Text); }
private void AddPropertyRefentry(BacnetDeviceObjectPropertyReference bopr, int IdxRemove) { String newText; if (bopr.deviceIndentifier.type != BacnetObjectTypes.OBJECT_DEVICE) { newText = bopr.objectIdentifier.ToString().Substring(7) + " - " + ((BacnetPropertyIds)bopr.propertyIdentifier).ToString().Substring(5) + " on localDevice"; } else { newText = bopr.objectIdentifier.ToString().Substring(7) + " - " + ((BacnetPropertyIds)bopr.propertyIdentifier).ToString().Substring(5) + " on DEVICE:" + bopr.deviceIndentifier.instance.ToString(); } if (IdxRemove != -1) { listReferences.Items.RemoveAt(IdxRemove); // remove an old entry } ListViewItem lvi = new ListViewItem(); // add a new one lvi.Text = newText; lvi.Tag = bopr; lvi.ImageIndex = MainDialog.GetIconNum(bopr.objectIdentifier.type); listReferences.Items.Add(lvi); }
void Update() { if (isShown && Input.GetKeyDown(KeyCode.Space)) { GameObject go = GameObject.Find("Player"); go.GetComponent <CharacterMovement>().canMove = true; if (assetName == "pitch") { Asset info = collectionCore.GetAssetInfoByName("pitch"); string[] pitches = ((string)(info.GetCustom("title", ""))).Split(";" [0]); string pitch = pitches [Random.Range(0, pitches.Length)]; GameObject obj = GameObject.Find("MainDialog"); MainDialog dialog = obj.GetComponent <MainDialog>(); dialog.ShowDialog("Now go show Woo your pitch for " + pitch + "!", null, null); GameController gameCtrler = (GameController)AppController.Instance.GetController(Controller.GAME); gameCtrler.hasPitch = true; } isShown = false; gameObject.SetActive(false); Destroy(iconObject); } }
public async Task ShowsUnsupportedCitiesWarning(string jsonFile, string expectedMessage) { // Load the LUIS result json and create a mock recognizer that returns the expected result. var luisResultJson = GetEmbeddedTestData($"{GetType().Namespace}.TestData.{jsonFile}"); var mockLuisResult = JsonConvert.DeserializeObject <FlightBooking>(luisResultJson); var mockLuisRecognizer = SimpleMockFactory.CreateMockLuisRecognizer <FlightBookingRecognizer, FlightBooking>( mockLuisResult, new Mock <IConfiguration>().Object); mockLuisRecognizer.Setup(x => x.IsConfigured).Returns(true); var sut = new MainDialog(mockLuisRecognizer.Object, _mockBookingDialog, _mockLogger.Object); var testClient = new DialogTestClient(Channels.Test, sut, middlewares: new[] { new XUnitDialogTestLogger(Output) }); // Execute the test case Output.WriteLine($"Test Case: {mockLuisResult.Text}"); var reply = await testClient.SendActivityAsync <IMessageActivity>("hi"); var weekLaterDate = DateTime.Now.AddDays(7).ToString("MMMM d, yyyy"); Assert.Equal($"What can I help you with today?\nSay something like \"Book a flight from Paris to Berlin on {weekLaterDate}\"", reply.Text); reply = await testClient.SendActivityAsync <IMessageActivity>(mockLuisResult.Text); Assert.Equal(expectedMessage, reply.Text); }
public Bot(IConfiguration configuration) { dialogs = new DialogSet(); // 5. in our Bot, add MainDialog to the top of the stack dialogs.Add("mainDialog", MainDialog.GetInstance(configuration)); }
public async Task TaskSelector(string utterance, string intent, string invokedDialogResponse) { var mockLuisRecognizer = SimpleMockFactory.CreateMockLuisRecognizer <IRecognizer, FlightBooking>( new FlightBooking { Intents = new Dictionary <FlightBooking.Intent, IntentScore> { { Enum.Parse <FlightBooking.Intent>(intent), new IntentScore() { Score = 1 } }, }, Entities = new FlightBooking._Entities(), }); var sut = new MainDialog(_mockLogger.Object, mockLuisRecognizer.Object, _mockBookingDialog); var testClient = new DialogTestClient(Channels.Test, sut, middlewares: new[] { new XUnitOutputMiddleware(Output) }); var reply = await testClient.SendActivityAsync <IMessageActivity>("hi"); Assert.Equal("What can I help you with today?", reply.Text); reply = await testClient.SendActivityAsync <IMessageActivity>(utterance); Assert.Equal(invokedDialogResponse, reply.Text); reply = testClient.GetNextReply <IMessageActivity>(); Assert.Equal("What else can I do for you?", reply.Text); }
public void ActivityHelperConstructor_ThrowsArgumentNullException() { var logger = new Mock <ILogger <ActivityHelper <MainDialog> > >().Object; var localizer = new Mock <IStringLocalizer <Strings> >().Object; turnContextMock = new Mock <ITurnContext>(); IStorage storage = new AzureBlobStorage(ConfigurationData.storageOptions.Value.ConnectionString, "bot-state"); UserState userState = new UserState(storage); ConversationState conversationState = new ConversationState(storage); var loggerMainDialog = new Mock <ILogger <MainDialog> >().Object; MainDialog mainDialog = new MainDialog( ConfigurationData.tokenOptions, loggerMainDialog, localizer); constructor_ArgumentNullException = new ActivityHelper <MainDialog>( logger, userState, teamStorageProvider.Object, localizer, mainDialog, conversationState, teamMembership.Object, userProfile.Object, introductionStorageProvider.Object, sharePointHelper.Object, introductionCardHelper.Object, graphUtility.Object, welcomeCardFactory.Object, null, userStorageProvider.Object, null, feedbackProvider.Object, imageUploadProvider.Object); }
private void OnShowDialog(object sender, EventArgs e) { var application = (DTE)GetService(typeof(SDTE)); if (application.Solution == null || !application.Solution.IsOpen) { MessageBox.Show("Please open a solution first. ", "No solution", MessageBoxButton.OK, MessageBoxImage.Information); } else { if (application.Solution.IsDirty) // solution must be saved otherwise adding/removing projects will raise errors { MessageBox.Show("Please save your solution first. \n" + "Select the solution in the Solution Explorer and press Ctrl-S. ", "Solution not saved", MessageBoxButton.OK, MessageBoxImage.Stop); } else if (application.Solution.Projects.OfType <Project>().Any(p => p.IsDirty)) { MessageBox.Show("Please save your projects first. \n" + "Select the project in the Solution Explorer and press Ctrl-S. ", "Project not saved"); } else { var window = new MainDialog(application, GetType().Assembly); var helper = new WindowInteropHelper(window); helper.Owner = (IntPtr)application.MainWindow.HWnd; window.ShowDialog(); } } }
public async Task MainDialog_DynamicMainDialog() { var convoState = new ConversationState(new MemoryStorage()); var adapter = new TestAdapter() .Use(new AutoSaveStateMiddleware(convoState)); var mainDialog = new MainDialog(convoState.CreateProperty <DialogState>("dialogState")); mainDialog .AddDialog(WaterfallTests.Create_Waterfall3()) .AddDialog(WaterfallTests.Create_Waterfall4()) .AddDialog(WaterfallTests.Create_Waterfall5()); await new TestFlow(adapter, async(turnContext, cancellationToken) => { await mainDialog.RunAsync(turnContext).ConfigureAwait(false); }) .Send("hello") .AssertReply("step1") .AssertReply("step1.1") .Send("hello") .AssertReply("step1.2") .Send("hello") .AssertReply("step2") .AssertReply("step2.1") .Send("hello") .AssertReply("step2.2") .StartTestAsync(); }
public async Task WholeEnchilada() { var mockFlightBookingService = new Mock <IFlightBookingService>(); mockFlightBookingService.Setup(x => x.BookFlight(It.IsAny <BookingDetails>(), It.IsAny <CancellationToken>())) .Returns(Task.FromResult(true)); var mockBookingDialog = SimpleMockFactory.CreateMockDialog <BookingDialog>(null, mockFlightBookingService.Object).Object; var mockLogger = new Mock <ILogger <MainDialog> >(); var sut = new MainDialog(mockLogger.Object, null, mockBookingDialog); var testFlow = BuildTestFlow(sut); await testFlow.Send("hi") .AssertReply("What can I help you with today?") .Send("hi") .AssertReply("Where would you like to travel to?") .Send("Bahamas") .AssertReply("Where are you traveling from?") .Send("New York") .AssertReply("When would you like to travel?") .Send("tomorrow at 5 PM") .AssertReply(activity => { // TODO: I had to add the Yes No for the channelId = test, the emulator displays suggested actions instead. var message = (IMessageActivity)activity; Assert.Equal( "Please confirm, I have you traveling to: Bahamas from: New York on: 2019-04-18T17 (1) Yes or (2) No", message.Text); }) .Send("Yes") .AssertReply("I have you booked to Bahamas from New York on tomorrow 5PM") .StartTestAsync(); }
public void Close() { RemoveMethod(); if (MainDialog.OverideCompletionScreenMethod != null) { MainDialog.OverideCompletionScreenMethod(); } }
public MainController(MainDialog view) { _view = view; _efContext = new ApplicationDbContext(); _adoContext = new AdoContext(); _efContext.Database.Migrate(); }
public void Close() { ApplicationController.Remove(RegionNames.MainTabRegion, MainDialog); if (MainDialog.OverideCompletionScreenMethod != null) { MainDialog.OverideCompletionScreenMethod(); } }
public static void Postfix(MainDialog __instance, string contextName, string contextId, bool state, GameObject thisButton) { if (contextName.Equals("modMenu")) { ModMenu.Menu.SetBackButton(DialogType.Main); MenuDialog.SwitchTo(ModMenu.Menu, __instance.hand()); } }
public Setting(String path, MainDialog parent) { setFile = path; readSetting(setFile); InitializeComponent(); loadSetting(settingFromFile); this.parent = parent; }
private static void Main() { // настройки Settings = new Settings("settings.xml"); System.Environment.SetEnvironmentVariable("NLS_LANG", "AMERICAN_AMERICA.CL8MSWIN1251"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); #if DEBUG //ui_lib.MdiFormBase form = new ui_lib.MdiFormBase(); //Application.Run(new ui_lib.MdiFormBase()); // соединение с Oracle OracleConnectionStringBuilder oraBuilder = new OracleConnectionStringBuilder { DataSource = "omega", UserID = "omp_adm", Password = "******" }; OracleConnection connection = new OracleConnection(oraBuilder.ToString()); connection.Open(); // контекст obj_lib.Module.ConnectionString = oraBuilder.ConnectionString; // дополнительное подключение obj_lib.Module.Connection = connection; // запуск приложения Application.Run(new MainForm()); #else try { MainDialog dialog = new MainDialog( Assembly.GetExecutingAssembly().GetName().Version, Settings.Connections); if (dialog.ShowDialog() == DialogResult.OK) { // соединение с Oracle obj_lib.Module.Connection = dialog.Connection; // контекст obj_lib.Module.ConnectionString = dialog.ConnectionString; // запуск приложения Application.Run(new MainForm()); } } catch (Exception exc) { MessageBox.Show(exc.Message); } #endif }
public void DialogConstructor() { var sut = new MainDialog(_mockLogger.Object, null, _mockBookingDialog); Assert.Equal("MainDialog", sut.Id); Assert.IsType <TextPrompt>(sut.FindDialog("TextPrompt")); Assert.NotNull(sut.FindDialog("BookingDialog")); Assert.IsType <WaterfallDialog>(sut.FindDialog("WaterfallDialog")); }
public NotifiController(IBotFrameworkHttpAdapter adapter, IStorage storage, MainDialog dialog, ConversationState conversationState, ILogger <NotifiController> logger) { _adapter = (BotFrameworkHttpAdapter)adapter ?? throw new ArgumentNullException(nameof(adapter)); _storage = storage ?? throw new ArgumentNullException(nameof(storage)); _mainDialog = dialog ?? throw new ArgumentNullException(nameof(dialog)); _conversationState = conversationState ?? throw new ArgumentNullException(nameof(conversationState)); _appId = Guid.NewGuid().ToString(); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void IsNetworkError(NPNFError error) { GameObject obj = GameObject.Find("MainDialog"); MainDialog dialog = obj.GetComponent <MainDialog>(); if (error.RequestException == "No such host is known" || error.Messages [0] == "Network not reachable") { dialog.ShowDialog("Network not reachable. Please check the internet connection and possibly restart the game.", null, null); } }
protected override void OnStartup(StartupEventArgs e) { var dialog = new MainDialog(); var protokollAdapter = new ProtokollAdapter(); var reizAdapter = new ReizAdapter(); var app = new IntegrationApp(dialog, protokollAdapter, reizAdapter); app.Run(); dialog.Show(); }
//public int DialogTrigger() //{ // int dialogID; // dialogID = 10001001; // int TriggerSource; // TriggerSource = 0; // MainDialog mainDialog = new MainDialog(); // mainDialog.OperaSenceJumper(dialogID); // return 0; //} public void Click() { int dialogID; dialogID = 10001001; //int TriggerSource; //TriggerSource = 0; MainDialog mainDialog = new MainDialog(); mainDialog.OperaSenceJumper(dialogID); }
public void ShowDialogTest() { LanguagePair[] languagePairs = new[] { new LanguagePair("en-US", "de-DE"), new LanguagePair("ru-RU", "en-GB") }; ITranslationProviderCredentialStore translationProviderCredentialStore = null; var target = new MainDialog(languagePairs, translationProviderCredentialStore); IWin32Window owner = null; target.ShowDialog(owner); }
public TeamsTalentMgmtBot( MainDialog mainDialog, IInvokeActivityHandler invokeActivityHandler, IBotService botService, ConversationState conversationState) { _mainDialog = mainDialog; _conversationState = conversationState; _botService = botService; _invokeActivityHandler = invokeActivityHandler; }
public async Task ShowsPromptIfLuisIsConfigured() { // Arrange var sut = new MainDialog(_mockLogger.Object, SimpleMockFactory.CreateMockLuisRecognizer <IRecognizer>(null).Object, _mockBookingDialog); var testClient = new DialogTestClient(Channels.Test, sut, middlewares: new[] { new XUnitOutputMiddleware(Output) }); // Act/Assert var reply = await testClient.SendActivityAsync <IMessageActivity>("hi"); Assert.Equal("What can I help you with today?", reply.Text); }
protected override void Dispose(bool disposing) { if (disposing) { Scene = null; User = null; MoveTime = 0; AttackTime = 0; NextRunTime = 0; CanMove = false; CanRun = false; MapControl = null; MainDialog = null; ChatDialog = null; ChatControl = null; InventoryDialog = null; CharacterDialog = null; StorageDialog = null; BeltDialog = null; MiniMapDialog = null; InspectDialog = null; OptionDialog = null; MenuDialog = null; NPCDialog = null; QuestDetailDialog = null; QuestListDialog = null; QuestLogDialog = null; QuestTrackingDialog = null; GameShopDialog = null; MentorDialog = null; RelationshipDialog = null; CharacterDuraPanel = null; DuraStatusPanel = null; HoverItem = null; SelectedCell = null; PickedUpGold = false; UseItemTime = 0; PickUpTime = 0; InspectTime = 0; DisposeItemLabel(); AMode = 0; PMode = 0; Lights = 0; NPCTime = 0; NPCID = 0; DefaultNPCID = 0; for (int i = 0; i < OutputLines.Length; i++) if (OutputLines[i] != null && OutputLines[i].IsDisposed) OutputLines[i].Dispose(); OutputMessages.Clear(); OutputMessages = null; } base.Dispose(disposing); }
public GameScene() { MapControl.AutoRun = false; MapControl.AutoHit = false; Slaying = false; Thrusting = false; HalfMoon = false; CrossHalfMoon = false; DoubleSlash = false; TwinDrakeBlade = false; FlamingSword = false; GroupDialog.GroupList.Clear(); Scene = this; BackColour = Color.Transparent; MoveTime = CMain.Time; KeyDown += GameScene_KeyDown; MainDialog = new MainDialog { Parent = this }; ChatDialog = new ChatDialog { Parent = this }; ChatControl = new ChatControlBar { Parent = this }; InventoryDialog = new InventoryDialog { Parent = this }; CharacterDialog = new CharacterDialog { Parent = this, Visible = false }; BeltDialog = new BeltDialog { Parent = this }; StorageDialog = new StorageDialog { Parent = this, Visible = false }; MiniMapDialog = new MiniMapDialog { Parent = this }; InspectDialog = new InspectDialog { Parent = this, Visible = false }; OptionDialog = new OptionDialog { Parent = this, Visible = false }; MenuDialog = new MenuDialog { Parent = this, Visible = false }; NPCDialog = new NPCDialog { Parent = this, Visible = false }; NPCGoodsDialog = new NPCGoodsDialog { Parent = this, Visible = false }; NPCDropDialog = new NPCDropDialog { Parent = this, Visible = false }; NPCAwakeDialog = new NPCAwakeDialog { Parent = this, Visible = false }; HelpDialog = new HelpDialog { Parent = this, Visible = false }; MountDialog = new MountDialog { Parent = this, Visible = false }; FishingDialog = new FishingDialog { Parent = this, Visible = false }; FishingStatusDialog = new FishingStatusDialog { Parent = this, Visible = false }; GroupDialog = new GroupDialog { Parent = this, Visible = false }; GuildDialog = new GuildDialog { Parent = this, Visible = false }; GuildBuffDialog = new GuildBuffDialog { Parent = this, Visible = false }; BigMapDialog = new BigMapDialog { Parent = this, Visible = false }; TrustMerchantDialog = new TrustMerchantDialog { Parent = this, Visible = false }; CharacterDuraPanel = new CharacterDuraPanel { Parent = this, Visible = false }; DuraStatusPanel = new DuraStatusDialog { Parent = this, Visible = true }; TradeDialog = new TradeDialog { Parent = this, Visible = false }; GuestTradeDialog = new GuestTradeDialog { Parent = this, Visible = false }; SkillBarDialog = new SkillBarDialog { Parent = this, Visible = false }; ChatOptionDialog = new ChatOptionDialog { Parent = this, Visible = false }; ChatNoticeDialog = new ChatNoticeDialog { Parent = this, Visible = false }; QuestListDialog = new QuestListDialog { Parent = this, Visible = false }; QuestDetailDialog = new QuestDetailDialog {Parent = this, Visible = false}; QuestTrackingDialog = new QuestTrackingDialog { Parent = this, Visible = false }; QuestLogDialog = new QuestDiaryDialog {Parent = this, Visible = false}; RankingDialog = new RankingDialog { Parent = this, Visible = false }; MailListDialog = new MailListDialog { Parent = this, Visible = false }; MailComposeLetterDialog = new MailComposeLetterDialog { Parent = this, Visible = false }; MailComposeParcelDialog = new MailComposeParcelDialog { Parent = this, Visible = false }; MailReadLetterDialog = new MailReadLetterDialog { Parent = this, Visible = false }; MailReadParcelDialog = new MailReadParcelDialog { Parent = this, Visible = false }; IntelligentCreatureDialog = new IntelligentCreatureDialog { Parent = this, Visible = false };//IntelligentCreature IntelligentCreatureOptionsDialog = new IntelligentCreatureOptionsDialog { Parent = this, Visible = false };//IntelligentCreature IntelligentCreatureOptionsGradeDialog = new IntelligentCreatureOptionsGradeDialog { Parent = this, Visible = false };//IntelligentCreature RefineDialog = new RefineDialog { Parent = this, Visible = false }; RelationshipDialog = new RelationshipDialog { Parent = this, Visible = false }; FriendDialog = new FriendDialog { Parent = this, Visible = false }; MemoDialog = new MemoDialog { Parent = this, Visible = false }; MentorDialog = new MentorDialog { Parent = this, Visible = false }; GameShopDialog = new GameShopDialog { Parent = this, Visible = false }; //not added yet KeyboardLayoutDialog = new KeyboardLayoutDialog { Parent = this, Visible = false }; for (int i = 0; i < OutputLines.Length; i++) OutputLines[i] = new MirLabel { AutoSize = true, BackColour = Color.Transparent, Font = new Font(Settings.FontName, 10F), ForeColour = Color.LimeGreen, Location = new Point(20, 25 + i * 13), OutLine = true, }; }
public static void Main() { MainDialog maindialog = new MainDialog(); maindialog.ShowDialog(); }