public MainWindow() { InitializeComponent(); Show(); brain = SeyanaBrain.SeyanaBrainFactory; sw = new SerifuWindow(); ebi = new ebifry(); brain.init(this, sw, ebi); sw.Owner = this; ebi.Owner = this; x = 100; y = 200; Width = WIDTH; Height = HEIGHT; var p0 = PointToScreen(new Point(0, 0)); var p1 = PointToScreen(new Point(Width, Height)); w = (int)(p1.X - p0.X); h = (int)(p1.Y - p0.Y); setPosition(); }
public void init(MainWindow mw, SerifuWindow sw, ebifry ebi) { syn = mw; voice = SeyanaVoice.SeyanaVoiceFactory; this.sw = sw; this.ebi = ebi; clk = new Clock(); clk.Show(); nowMoveMode = moveMode.STAND; queue = new Queue <qtask>(); moveSeyana(MainWindow.x, MainWindow.y); moveTask.start(); thinkTask.start(); }