Esempio n. 1
0
 public Form2(ServerProcess proc, string msg)
 {
     this.proc = proc;
     InitializeComponent();
     label1.Text          = msg;
     button1.DialogResult = DialogResult.OK;
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();

            // So either the ASF.exe is in the same directory, or we assume development environment.
            string ASF = "ASF.exe";

            if (!File.Exists(ASF))
            {
                ASF = "../../../ArchiSteamFarm/bin/" + (Debugging.IsDebugBuild ? "Debug" : "Release") + "/ArchiSteamFarm.exe";
                if (!File.Exists(ASF))
                {
                    Logging.LogGenericError("ASF binary could not be found!");
                    Environment.Exit(1);
                }
            }

            proc = new ServerProcess(ASF, "--server", textBox2);
            proc.Start();
        }