Пример #1
0
 private void Send_btn_Click(object sender, EventArgs e)
 {
     if (InputEdit.Text != string.Empty)
     {
         // socket.Send(InputEdit.Text,null);
         socket.DisplayMessage(socket.LogMess, Chat_box);
         InputEdit.Clear();
     }
 }
Пример #2
0
 protected override Validation <string, BlendMapGenerator> CreateService(
     Godot.Control node, ILoggerFactory loggerFactory)
 {
     return
         (from inputEdit in InputEdit
          .ToValidation("Failed to find the edit control for the input directory.")
          from outputEdit in OutputEdit
          .ToValidation("Failed to find the edit control for the output directory.")
          from sourceList in SourceList
          .ToValidation("Failed to find the source item control.")
          from morphList in MorphList
          .ToValidation("Failed to find the morph item control.")
          from progressLabel in ProgressLabel
          .ToValidation("Failed to find the progress label.")
          from progressBar in ProgressBar
          .ToValidation("Failed to find the progress bar.")
          from inputButton in InputButton
          .ToValidation("Failed to find the button for the input chooser dialog.")
          from outputButton in OutputButton
          .ToValidation("Failed to find the button for the output chooser dialog.")
          from startButton in StartButton
          .ToValidation("Failed to find the start button.")
          from closeButton in CloseButton
          .ToValidation("Failed to find the close button.")
          from fileDialog in FileDialog
          .ToValidation("Failed to find the file chooser dialog.")
          from infoLabel in InfoLabel
          .ToValidation("Failed to find the information label.")
          select new BlendMapGenerator(
              inputEdit,
              outputEdit,
              sourceList,
              morphList,
              progressLabel,
              progressBar,
              inputButton,
              outputButton,
              startButton,
              closeButton,
              fileDialog,
              infoLabel,
              node,
              loggerFactory));
 }