Exemplo n.º 1
0
 private void Page_Unloaded(object sender, RoutedEventArgs e)
 {
     if (Milkcocoa != null)
     {
         Milkcocoa.Dispose();
         Milkcocoa = null;
     }
 }
Exemplo n.º 2
0
        private void btnDisconnect_Click(object sender, RoutedEventArgs e)
        {
            if (Milkcocoa != null)
            {
                Milkcocoa.Dispose();
                Milkcocoa = null;
            }

            IsConnect = false;
        }
Exemplo n.º 3
0
        private void btnConnect_Click(object sender, RoutedEventArgs e)
        {
            Milkcocoa = new mlk.Milkcocoa(mlk.Milkcocoa.MakeHostString(txtAppId.Text));

            IsConnect = true;
        }